package com.example.weather.girl

import android.util.SparseArray
import androidx.activity.viewModels
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.library_base.base.BaseActivity
import com.example.library_base.router.WeatherRouterPath
import com.example.weather.BR
import com.example.weather.R
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
@Route(path = WeatherRouterPath.WEATHER_GIRL)
class GirlActivity: BaseActivity(R.layout.activity_girl) {

    private val mViewModel by viewModels<GirlViewModel>()

    override fun getVariableSparseArray(): SparseArray<Any> {
        val variables = SparseArray<Any>()
        variables.put(BR.girlViewModel, mViewModel)
        return variables
    }

    override fun initView() {
    }

    override fun requestData() {
        mViewModel.getGirl(this)
    }
}